#ifndef _STDFIFO_H_
#define _STDFIFO_H_

#include <stddef.h>
typedef enum 
{
    ReadOnly,
    WriteOnly
}OpenMode;

struct StdFIFO;
typedef struct StdFIFO FIFO;

//FIFO初始化
FIFO* InitFIFO(const char* path,OpenMode mode);
void ReadFIFO(FIFO *f,void *ptr,size_t size);
void WriteFIFO(FIFO *f,void *ptr,size_t size);
void ClearFIFO(FIFO *f);

#endif